#include "descriptorManager.h"
#include "logger.h"
#include "common.h"
#include "termlist.h"


int main(int argc, char** argv) {
  log_init();
  g_log_context.log_level = LOG_DEBUG;
  int ret;

  FILE* fp = fopen(argv[1], "r");assert(fp);

  idx_index0_t index0;

  while(1) {
    ret = fread(&index0, sizeof(idx_index0_t), 1, fp);
    if(ret != 1 && feof(fp)) {
      NOTICE("finish");
      exit(0);
    }
    else if(ret != 1) assert(0);

    NOTICE("low[%llu] high[%llu] off[%u]",
	index0.tsign_l,
	index0.tsign_h,
	index0.foff_in_index1
	);
  }

  return 0;
}

